package Calculator;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class MoreInfo_panel extends Frame {
    public static void main(String[] args){

        new MyMoreInfo_panel();
    }
}

class MyMoreInfo_panel extends Frame {

    public MyMoreInfo_panel() {
        Panel panel = new Panel();
        panel.setLayout(new GridLayout(3,1));

        panel.setBounds(100, 100, 300, 400);

        // 此基本计算器的简单介绍
        TextField textField1 = new TextField();
        textField1.setText("此基本计算器创建的时间在 java 课设第 12 周，2022.11.18 小项目答辩");
        panel.add(textField1);

        // 源码分享
        TextField textField2 = new TextField();
        textField2.setText("此基本计算器代码公布在：https://gitee.com/ax020913 账号里面");
        panel.add(textField2);

        // 欢迎各位读者的指点整改
        TextField textField3 = new TextField();
        textField3.setText("此基本计算器代码欢迎各位读者的指点整改");
        panel.add(textField3);


        this.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
//                super.windowClosing(e);
                System.exit(0);
            }
        });
        setVisible(true);
        setBounds(100,100,500,550);
        add(panel);
    }


}